package hw.service.impl;

import hw.config.StudentConfig;
import hw.mapper.IStudentMapper;
import hw.service.IStudentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Service;
import project.bean.StudentBean;

import java.util.List;

@Service
public class StudentServiceImpl implements IStudentService {
    IStudentMapper mapper;

    @Override
    public void addUser(StudentBean studentBean) {
        mapper.addUser(studentBean);
    }

    @Override
    public List<StudentBean> findAllStudent() {
        return mapper.findAllStudent();
    }
}
